package com.bcn.login_mybatisplus_demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName("user")
public class UserEntity implements Serializable {


    /**
     * ID 自增
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String password;


    /**
     * 出生年月
     */
    private String dateOfBirth;

    /**
     * 年龄
     */
    private Integer age;



    public UserEntity(Integer userId) {
        this.userId = userId;
    }

    public UserEntity() {
    }
}

